

package ConversorMassa;


public class ConversorTonelada {
    private double tonelada;
    private double quilograma;
    private double grama;
    private double miligrama;
   
    public ConversorTonelada(){
        
    }
    
    public double converteQuilograma(){
        tonelada = quilograma/1000;
        return tonelada;
    }
    
    public double converteGrama(){
        tonelada = grama/1000000;
        return tonelada;
    }
    
    public double converteMiligrama(){
        tonelada = miligrama/1000000000;
        return tonelada;
    }
    
    
    
    /**
     * @return the tonelada
     */
    public double getTonelada() {
        return tonelada;
    }

    /**
     * @param tonelada the tonelada to set
     */
    public void setTonelada(double tonelada) {
        this.tonelada = tonelada;
    }

    /**
     * @return the quilograma
     */
    public double getQuilograma() {
        return quilograma;
    }

    /**
     * @param quilograma the quilograma to set
     */
    public void setQuilograma(double quilograma) {
        this.quilograma = quilograma;
    }

    /**
     * @return the grama
     */
    public double getGrama() {
        return grama;
    }

    /**
     * @param grama the grama to set
     */
    public void setGrama(double grama) {
        this.grama = grama;
    }

    /**
     * @return the miligrama
     */
    public double getMiligrama() {
        return miligrama;
    }

    /**
     * @param miligrama the miligrama to set
     */
    public void setMiligrama(double miligrama) {
        this.miligrama = miligrama;
    }
    
    


}
